* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 登录容器 */
.login-container {
    margin: auto;
    margin-top: 180px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

/* 登录头部 */
.login-header {
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f2f5;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-tip {
    color: #666;
    font-size: 14px;
}

/* 表单样式 */
.form-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 14px 20px 14px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fff;
}

/* 图标样式 */
.icon-user, .icon-lock {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #666;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #007bff;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
}

.login-btn:hover {
    background: linear-gradient(90deg, #0069d9, #00b4e6);
    box-shadow: 0 6px 10px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

/* 社交登录 */
.social-login {
    margin: 25px 0;
    position: relative;
}

.social-login span {
    display: inline-block;
    padding: 0 10px;
    background: #fff;
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 13px;
}

.social-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px);
}

/* 注册链接 */
.register-link {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

/* 结果消息 */
.result-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .login-header h1 {
        font-size: 22px;
    }
}
/* 添加动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}

.animate-success {
    animation: pulse 0.5s ease-in-out;
}

/* 加载动画 */
.icon-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}